<extend name="template/base_index" />

<block name="area_header">
    <style type="text/css">
        .main-operator {
            width: 920px;
            margin: 0 auto;
        }
        .main-operator .title{
            font-size: 14px;
            font-weight: bold;
            text-align: center;
        }
        .main-operator ul{
            margin-left: 15px;
        }
        .main-operator ul li{
            height: 40px;
            LINE-HEIGHT: 40px;
        }
        .main-operator .arrow{
            font-size: 26px;
            color: #333333;
        }
    </style>
</block>

<block name="area_body">
    {:W('Menus/topbar')}
    <div class="admin-main container-fluid">
        {:W('Menus/left')}
        <div class="admin-main-content">
            {:W('Menus/breadcrumb')}
            <!-- 过滤\查询按钮 -->

            <div class="main-operator center">
                <div class="h3 text-center">订单周期:{$order.createtime|date='Y-m-d H:i:s',###}至{$last_update_time|date='Y-m-d H:i:s',###}</div>

                <div class="h3 text-center"><a href="{:U('Admin/Orders/view',array('id'=>$order['id']))}">平台订单号:{$order.order_code},上报订单号: {$order.pay_code}</a></div>
                <ul class="pull-left list-unstyled" >
                    <li class="title">电商平台</li>
                    <li>

                        <eq name="flag_confirm" value="1">
                           <span class="text-primary"><a href="{:U('Admin/Orders/bulkSure',array('order_code'=>$order['order_code']))}">1. 确认订单</a>
                               (点击确认订单)</span>
                            <else/>
                            <span class="text-muted">1. 确认订单</span>
                        </eq>
                    </li>
                    <li class="text-center arrow"><i class="fa fa-arrow-down"></i></li>
                    <li>
                        <eq name="flag_express" value="1">
                           <span class="text-primary"><a href="{:U('Admin/Orders/deliver',array('id'=>$order['id']))}">2. 选择快递公司</a>（当前）
                            </span>
                            <else/>
                        <span class="text-muted">2. 快递公司
                            <span class="small">{$express['expressname']},单号:
                           <empty name="express['expressno']">
                               等待网仓反馈
                               <else/>
                               {$express['expressno']}
                           </empty>
                            </span></span>
                        </eq>
                    </li>
                    <li>&nbsp;</li>
                    <li>&nbsp;</li>
                    <li>&nbsp;</li>
                    <li>&nbsp;</li>
                    <li>&nbsp;</li>
                    <li>
                        <notempty name="zjport_reply_cnt">
                            <span class="text-muted">8. 等待海关回执 <a target="_blank" href="{:U('Admin/Orders/view',array('id'=>$order['id']))}">查看</a></span>
                            <else/>
                             8. 等待海关回执(<a target="_blank" href="http://www.kjeport.com">自主查询</a>)
                        </notempty>
                    </li>
                    <li class="text-center arrow"><i class="fa fa-arrow-down"></i></li>
                    <li class="text-center arrow"><i class="fa fa-arrow-down"></i></li>
                    <li>


                        <notempty name="order_tax">
                            <span class="text-muted">10.1 已接收({$order_tax.create_time|date='Y-m-d H:i:s',###})</span>
                            <else/>
                            <span class="">10.1 未接收税款应征回执</span>
                        </notempty>

                    </li>
                    <li>

                        <notempty name="order_bill">
                            <span class="text-muted">11.1 已接收(出区时间:{$order_bill.out_time})</span>
                            <else/>
                            <span >11.1 接收运单出区回执</span>
                        </notempty>

                    </li>
                    <li class="">&nbsp;</li>
                    <li>
                        <empty name="had_receipt">
                            12. 买家收货
                            <else/>
                            <span class="text-muted">12. 买家收货 ({$had_receipt.create_time|date='Y-m-d H:i:s',###})</span>
                        </empty>
                    </li>
                    <li class="text-center arrow"><i class="fa fa-arrow-down"></i></li>
                    <li>
                        <empty name="completed">
                            13. 订单交易完成
                            <else/>
                            <span class="text-muted">13. 订单交易完成 ({$completed.create_time|date='Y-m-d H:i:s',###})</span>
                        </empty>
                    </li>
                </ul>

                <ul class="pull-left list-unstyled">
                    <li class="title">&nbsp;</li>
                    <li>&nbsp;</li>
                    <li>&nbsp;</li>
                    <li class="text-center arrow"><i class="fa fa-arrow-right"></i></li>
                    <li>&nbsp;</li>
                    <li>&nbsp;</li>
                    <li>&nbsp;</li>
                    <li>&nbsp;</li>
                    <li>&nbsp;</li>
                    <li>&nbsp;</li>
                    <li class="text-center arrow"><i class="fa fa-arrow-left"></i></li>
                    <li>&nbsp;</li>
                    <li>&nbsp;</li>
                    <li class="text-center arrow"><i class="fa fa-arrow-left"></i></li>
                    <li class="text-center arrow"><i class="fa fa-arrow-left"></i></li>
                    <li>&nbsp;</li>
                    <li class="text-center arrow"><i class="fa fa-arrow-left"></i></li>
                </ul>

                <ul class="pull-left list-unstyled">
                    <li class="title">网仓</li>
                    <li>&nbsp;</li>
                    <li>&nbsp;</li>
                    <li>
                        <if condition="$push_netwh_cnt gt $cancel_netwh_cnt">
                            <span class="text-muted">3. 推送订单到网仓(已推:
                                <a target="_blank" href="{:U('Admin/NetWH/index',array('order_code'=>$order['order_code']))}">{$push_netwh_cnt}次</a>,取消:{$cancel_netwh_cnt}次)</span>
                            <else/>
                            <a href="{:U('Admin/Zjport/uploadOrder',array('order_code'=>$order['order_code']))}">3. 推送订单到网仓(已推: {$push_netwh_cnt}次,取消:{$cancel_netwh_cnt}次)</a>
                        </if>
                       </li>
                    <li class="text-center arrow"><i class="fa fa-arrow-down"></i></li>
                    <li>
                        <notempty name="last_accept_wh">
                            <span class="text-muted">4. 网仓反馈接单成功(已接:<a target="_blank" href="{:U('Admin/NetWH/index',array('order_code'=>$order['order_code']))}">{$push_netwh_cnt}次</a>)</span>
                            <else/>
                            4. 网仓反馈接单成功
                        </notempty>
                    </li>
                    <li>&nbsp;</li>
                    <li>&nbsp;</li>
                    <li>&nbsp;</li>
                    <li class="text-center arrow"><i class="fa fa-arrow-left"></i></li>
                    <li>&nbsp;</li>
                    <li>&nbsp;</li>
                    <li class="text-center arrow"><i class="fa fa-arrow-left"></i></li>
                    <li class="text-center arrow"><i class="fa fa-arrow-left"></i></li>
                    <li>&nbsp;</li>
                    <li>
                        <notempty name="last_wms_status">
                            <span class="text-muted">9. 网仓最新状态（{$last_wms_status.next_status|getWMSDescription}）</span>
                            <a target="_blank" href="{:U('Admin/NetWH/index',array('order_code'=>$order['order_code']))}">查看</a>
                            <else/>
                            <a target="_blank" href="{:U('Admin/NetWH/index',array('order_code'=>$order['order_code']))}">9. 请求网仓发货(必须有11.运单出区回执才可发货)</a>
                        </notempty>
                    </li>
                </ul>

                <ul class="pull-left list-unstyled">
                    <li class="title">&nbsp;</li>
                    <li>&nbsp;</li>
                    <li>&nbsp;</li>
                    <li>&nbsp;</li>
                    <li>&nbsp;</li>
                    <li>&nbsp;</li>
                    <li>&nbsp;</li>
                    <li>&nbsp;</li>
                    <li>&nbsp;</li>
                    <li class="text-center arrow"><i class="fa fa-arrow-left"></i></li>
                    <li>&nbsp;</li>
                    <li>&nbsp;</li>
                    <li class="text-center arrow"><i class="fa fa-arrow-left"></i></li>
                    <li class="text-center arrow"><i class="fa fa-arrow-left"></i></li>
                </ul>
                <ul class="pull-left list-unstyled">
                    <li class="title">电子口岸</li>
                    <li>&nbsp;</li>
                    <li>&nbsp;</li>
                    <li>&nbsp;</li>
                    <li>&nbsp;</li>

                    <li>
                        <notempty name="zjport_order_info">
                            <span class="text-muted">5. 上报订单数据 <a target="_blank" href="{:U('Admin/Zjport/uploadOrder',array('order_code'=>$order['order_code']))}">查看</a></span>
                            <else/>
                            <span class="text-primary">
                               <a target="_blank"  href="{:U('Admin/Zjport/uploadOrder',array('order_code'=>$order['order_code']))}">5. 上报订单数据</a>
                            </span>
                        </notempty>

                    </li>
                    <li class="text-center arrow"><i class="fa fa-arrow-down"></i></li>
                    <li>
                        <notempty name="zjport_order_info">
                            <span class="text-muted">6. 上报支付单 <a target="_blank"  href="{:U('Admin/Zjport/uploadPay',array('order_code'=>$order['order_code']))}">查看</a></span>
                            <else/>
                            <span class="text-primary">
                               <a target="_blank"  href="{:U('Admin/Zjport/uploadPay',array('order_code'=>$order['order_code']))}">5. 上报订单数据</a>
                            </span>
                        </notempty>

                    </li>
                    <li class="text-center arrow"><i class="fa fa-arrow-down"></i></li>
                    <li>
                        <notempty name="zjport_order_info">
                            <span class="text-muted">7. 个人物品申报单 <a target="_blank"  href="{:U('Admin/Zjport/uploadPersonal',array('order_code'=>$order['order_code']))}">查看</a></span>
                            <else/>
                            <span class="text-primary">
                               <a target="_blank"  href="{:U('Admin/Zjport/uploadPersonal',array('order_code'=>$order['order_code']))}">7. 个人物品申报单</a>
                            </span>
                        </notempty></li>
                    <li>&nbsp;</li>
                    <li>&nbsp;</li>
                    <li>
                        <notempty name="order_tax">
                            <span class="text-muted">10. 已反馈税款应征回执</span>
                            <else/>
                            <span class="">10. 反馈税款应征回执</span>
                        </notempty>
                    </li>
                    <li>
                        <notempty name="order_bill">
                            <span class="text-muted">11. 已反馈运单出区回执</span>
                            <else/>
                            <span >11. 反馈运单出区回执</span>
                        </notempty>
                    </li>
                    <li>&nbsp;</li>
                    <li>&nbsp;</li>
                </ul>

            </div>

        </div>
    </div>
    <!-- END admin-main-content -->
    </div>
    <!-- END admin-main-->
</block>

<block name="area_footer">

</block>